To minimize the file size of the compressed file, set the compression level on the C1ZStreamWriter's constructor by using the following code:
C# |
Copy Code
|
---|---|
SaveFileDialog dlgSaveFile = new SaveFileDialog(); if (dlgSaveFile.ShowDialog() == true) { C1ZStreamWriter compressor = new C1ZStreamWriter(dlgSaveFile.OpenFile(), CompressionLevelEnum.BestCompression); } |
Other compression level options on the C1ZStreamWriter's constructor include the following: